package com.zzfeidu.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.zzfeidu.mapper.N1RecordMapper;
import com.zzfeidu.pojo.N1Record;
import com.zzfeidu.service.IN1RecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 记录 服务层实现
 * 
 * @author liulike
 * @date 2019-11-05
 */
@Component
@Service
public class N1RecordServiceImpl implements IN1RecordService
{
	@Autowired
	private N1RecordMapper n1RecordMapper;

	/**
     * 查询记录信息
     * 
     * @param id 记录ID
     * @return 记录信息
     */
    @Override
	public N1Record selectN1RecordById(String id)
	{
	    return n1RecordMapper.selectN1RecordById(id);
	}
	
	/**
     * 查询记录列表
     * 
     * @param n1Record 记录信息
     * @return 记录集合
     */
	@Override
	public List<N1Record> selectN1RecordList(N1Record n1Record)
	{
	    return n1RecordMapper.selectN1RecordList(n1Record);
	}
	
    /**
     * 新增记录
     * 
     * @param n1Record 记录信息
     * @return 结果
     */
	@Override
	public int insertN1Record(N1Record n1Record)
	{
	    return n1RecordMapper.insertN1Record(n1Record);
	}
	
	/**
     * 修改记录
     * 
     * @param n1Record 记录信息
     * @return 结果
     */
	@Override
	public int updateN1Record(N1Record n1Record)
	{
	    return n1RecordMapper.updateN1Record(n1Record);
	}


	
}
